package com.yumi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 车辆信息表实体类
 */
@Data
@TableName("T_BSE_BUSINFO")
@Schema(description = "车辆信息")
public class TBseBusinfo {

    /**
     * 车辆ID
     */
    @TableId
    @Schema(description = "车辆ID")
    private String busId;

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空")
    @Schema(description = "车牌号")
    private String tlic;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除(0-未删除，1-已删除)
     */
    @TableLogic
    @Schema(description = "是否删除")
    private Integer deleted;
}